<template>
  <view class="app-container">
    <router-view />
  </view>
</template>

<script>
import HeaderBar from '@/components/HeaderBar.vue'

export default {
  components: {  HeaderBar },
  data() {
    return {
      activeTab: 'home',
      currentDate: new Date().toLocaleDateString('zh-CN', {
        year: 'numeric',
        month: 'long',
        day: 'numeric',
        weekday: 'long'
      })
    }
  },
  methods: {
   
  }
}
</script>

<style lang="scss">

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.app-container {
  background: var(--system-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--label-primary);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

.uni-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  color: var(--label-secondary);
  font-size: 14px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

:root {
  --system-background: #ffffff;
  --label-primary: #ffffff;
  --label-secondary: #a6a6a6;
  --separator: #d1d1d6;
  --system-blue: #007aff;
  --system-gray: #8e8e93;
  --system-green: #34c759;
  --system-red: #ff3b30;
  --system-yellow: #ffcc00;
  
  @media (prefers-color-scheme: dark) {
    --system-background: #000000;
    --label-primary: #ffffff;
    --label-secondary: #8e8e93;
    --separator: #38383a;
  }
}

/* 全局按钮样式 */
button {
  border-radius: 12px;
  background-color: var(--system-blue);
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 24px;
  border: none;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  
  &:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

/* 优化卡片样式 */
.card {
  background-color: var(--system-background);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--separator);
  transition: all 0.2s ease;
  
  &:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
}

/* 美化底部导航样式 */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e0f0f0;
  padding: 10px 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
  flex: 1;
  text-align: center;
  color: #8e8e93;
  font-size: 14px;
  transition: color 0.3s, transform 0.3s;

  &.active {
    color: #007aff;
    font-weight: bold;
    animation: glow 1s infinite alternate;
  }

  &:hover {
    transform: translateY(-2px);
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #007aff, 0 0 10px #007aff;
  }
  to {
    text-shadow: 0 0 10px #007aff, 0 0 20px #007aff;
  }
}
</style>
